// File Name: ProviderFragmentRootCustom.h

#ifndef PROVIDERFRAGMENTROOTCUSTOM_H
#define PROVIDERFRAGMENTROOTCUSTOM_H

#include <UIAutomationCore.h>

namespace UIAutomationCPP
{
	public class ProviderFragmentRootCustom : public IRawElementProviderFragmentRoot 
	{
		public:
			ProviderFragmentRootCustom();
			~ProviderFragmentRootCustom();

			HRESULT __stdcall ElementProviderFromPoint(double x, double y, IRawElementProviderFragment** pRetVal);
			HRESULT __stdcall GetFocus(IRawElementProviderFragment** pRetVal);

			HRESULT __stdcall QueryInterface(REFIID riid, void **ppvObj);
			ULONG __stdcall AddRef();
			ULONG __stdcall Release();

		private:
			HWND controlHwnd;
			ULONG refCount;
	};
}
#endif
